// 蜂窝蜜造平台生成代码，如手工更改，请添加到 .beeignore 忽略生成

package com.fowo.api.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.fowo.api.common.model.OptionItem;
import com.fowo.api.entity.ReportReceivable;
import com.fowo.api.model.report.receivable.ReportReceivableItemVo;
import com.fowo.api.model.report.receivable.ReportReceivableSearchParamPo;
import com.fowo.api.model.report.receivable.ReportReceivableVo;
import java.util.Date;
import java.util.List;
import java.util.Map;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface ReportReceivableMapper extends BaseMapper<ReportReceivable> {
  Page<ReportReceivableItemVo> pageSearch(
    @Param("page") Page page,
    @Param("search") ReportReceivableSearchParamPo search
  );
  List<OptionItem<ReportReceivableItemVo>> searchOptions(
    @Param("search") ReportReceivableSearchParamPo search
  );
  List<ReportReceivableItemVo> search(
    @Param("search") ReportReceivableSearchParamPo search
  );
  Date searchLastUpdateTime(
    @Param("search") ReportReceivableSearchParamPo search
  );
  /**
   * 搜索满足条件的所有记录的编号列表
   * @param search 搜索参数
   * @return 编号列表
   */
  List<Long> searchIds(@Param("search") ReportReceivableSearchParamPo search);
  /**
   * 搜索满足条件的记录数量
   * @param search 搜索参数
   * @return 记录数量
   */
  Long searchCount(@Param("search") ReportReceivableSearchParamPo search);
  Long getIdBySids(@Param("sids") Long sids);

  List<Long> getIdsBySids(@Param("list") List<Long> list);

  Long getSidsById(@Param("id") Long id);

  List<Map<String, Object>> getSidsByIds(@Param("ids") List<Long> ids);
  ReportReceivableVo selectVoById(@Param("id") Long id);
  /**
   * 应收报告视图
   */
  List<ReportReceivableItemVo> reportReceivableViews(
    @Param("search") ReportReceivableSearchParamPo search
  );

  /**
   * 获取应收报告视图编号列表
   */
  List<Long> reportReceivableViewsIds(
    @Param("search") ReportReceivableSearchParamPo search
  );

  /**
   * 获取应收报告视图的总数
   */
  Long reportReceivableViewsCount(
    @Param("search") ReportReceivableSearchParamPo search
  );

  /**
   * 应收报告视图分页
   */
  Page<ReportReceivableItemVo> reportReceivableViewsPage(
    @Param("page") Page page,
    @Param("search") ReportReceivableSearchParamPo search
  );
  Date reportReceivableViewsLastUpdateTime(
    @Param("search") ReportReceivableSearchParamPo search
  );
}
